package cn.shop.cloud.feign;


import cn.shop.cloud.common.Result;
import cn.shop.cloud.domain.Good;
import cn.shop.cloud.hystrix.GoodFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @program: work
 * @ClassName GoodFeignApi
 * @description:
 * @author: 李尧坤
 * @create: 2025−01-08 20:38
 * @Version 1.0
 **/

@FeignClient(name = "good-server",fallback = GoodFeignHystrix.class )
public interface GoodFeignApi {

    @RequestMapping("/queryByIds")//方法叫啥就写啥
    public Result<List<Good>> queryByIds(@RequestParam("ids") List<Long> ids);

}
